﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AddTestFeeStruct.aspx.cs" Inherits="IDML.Web.Modules.Test.AddTestFeeStruct" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <hgroup class="title">
        <h2>Add Test Fees.</h2>
    </hgroup>
    <section id="testfeeform">
     <p class="validation-summary-errors">
            <asp:Literal runat="server" ID="FailureText" />
            <asp:Label ID="lblError" runat="server" CssClass="field-validation-error" />
        </p>
        <fieldset>
            <ol>
                <li>
                    <asp:Label ID="Label1" runat="server" AssociatedControlID="ddlTestCategory">Test Category</asp:Label>
                    <asp:DropDownList ID="ddlTestCategory" runat="server" AutoPostBack="true"
                        onselectedindexchanged="ddlTestCategory_SelectedIndexChanged"></asp:DropDownList>
                </li>
                <li>
                    <asp:Label ID="lblTest" runat="server" AssociatedControlID="ddlTest">Test</asp:Label>
                    <asp:DropDownList ID="ddlTest" runat="server" AutoPostBack="true"
                        onselectedindexchanged="ddlTest_SelectedIndexChanged"></asp:DropDownList>
                </li>
                <li>
                    <asp:Label ID="lblTestAmount" runat="server" AssociatedControlID="txtTestAmount">Test Amount (Rs.)</asp:Label>
                    <asp:TextBox runat="server" ID="txtTestAmount" />
                    <asp:RequiredFieldValidator ID="rfvTestAmount" runat="server" ControlToValidate="txtTestAmount" CssClass="field-validation-error" ErrorMessage="The test amount field is required." />
                </li>
             </ol>
              <asp:Button ID="btnTestAmount" runat="server" CommandName="Add Fee" 
                Text="Save" onclick="btnTestAmount_Click" />
        </fieldset>
    </section>
    <div id="dvgwTestFee" runat="server" visible="false">
        <asp:GridView ID="gwTestFee" AutoGenerateColumns="false" runat="server">
            <Columns>
                <asp:BoundField DataField="TestId" HeaderText="TestId" Visible="false" ReadOnly="true" />
                <asp:BoundField DataField="TestFeeStructureId" HeaderText="TestId" Visible="false"
                    ReadOnly="true" />
                <asp:BoundField DataField="TestCode" HeaderText="Test Code" />
                <asp:BoundField DataField="TestName" HeaderText="Test Name" />
                <asp:BoundField DataField="Amount" HeaderText="Amount" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
